package com.gitee.base.modules.core.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("sys_user_login_log")
public class SysUserLoginLog {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Integer userId;//用户Id

    @TableField("ip")
    private String ip;

    @TableField("city")
    private String city;//ip所在城市

    @TableField("browser")
    private String browser;

    @TableField("browser_short")
    private String browserShort;//只含浏览器大版本信息

    @TableField("os")
    private String os;

    @TableField("`auto`")
    private Boolean auto = false;

    @TableField(value = "time", fill = FieldFill.INSERT)
    private LocalDateTime time;
}
